#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# Test Vala support: out-of-range hexadecimal escape sequences.

: ${XGETTEXT=xgettext}

cat <<\EOF > xg-vala-3.vala
_("\x678888");
EOF

${XGETTEXT} --omit-header --no-location -o xg-vala-3.tmp xg-vala-3.vala || Exit 1
func_filter_POT_Creation_Date xg-vala-3.tmp xg-vala-3.po

cat <<\EOF > xg-vala-3.ok
msgid "g"
msgstr ""
EOF

: ${DIFF=diff}
${DIFF} xg-vala-3.ok xg-vala-3.po
result=$?

exit $result
